package koala.kuangjiademo.data;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

public class Device implements Serializable {
    @SerializedName("ID")
    public String id;
    @SerializedName("E_PRODUNUM")
    public String deviceId;
    @SerializedName("PACKSELFID")
    public String selfNum;
    @SerializedName("E_STATUS")
    public String status;

    @SerializedName("E_PRODMODEL")
    private String type;

    @SerializedName("C_PRODUNUM")
    private String simCardNum;
    @SerializedName("C_PRODMODEL")
    private String simCardType;
    @SerializedName("PRODSPEC")
    private String lineType;

    public boolean isWireless() {
        return !lineType.equals("有线");
    }

    public String getType() {
        return type;
    }


    public String getSimNum() {
        return simCardNum;
    }

    public String getSimType() {
        return simCardType;
    }

    public boolean isInstallDevice() {
        return true;// FIXME: 2017/5/22/022
    }

    public static class Data implements Serializable {
        public List<Device> records;
    }

    public static class Response extends ResponsePacket<Data> {
    }
}
